package com.demo.test;


import com.demo.inter.UserInterface;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created by win10 on 2020/2/5 10:36
 */
public class unrest {

    public static void main(String[] args) {
        ApplicationContext act = new ClassPathXmlApplicationContext("applicactionContext.xml");
        //Object user = act.getBean("user");
        UserInterface userinter = (UserInterface) act.getBean("userinter");
        userinter.say();
        //System.out.println("user：" + user);
    }

}
